{if $um eq 1}
<div><a href="?mod=student&a=aunit">Back</a></div><br />
<div>
<table width="500" border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse">
	<tr>
    	<td align="center" width="50"><b>Number</b></td>
        <td align="center"><b>Test title</b></td>
    </tr>
    {section name="done" loop=$list_done}
    <tr>  
		<td align="center">{$smarty.section.done.iteration}</td>
		<td><div>{$list_done[done].Title}</div><br />
            {section name="arr" loop=$n_arr[done]}	
                <div><a href="?mod=student&a=reviewtest&test={$list_done[done].TestID}&at={$n_arr[done][arr]}">Attempt: {$n_arr[done][arr]}</a></div>
            {/section}
        </td>
	</tr>
    {/section}
</table>
</div>
{else}
<div><a href="?mod=student&a=amodule">Back</a></div><br />
<div>
<table width="500" border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse">
	<tr>
    	<td align="center" width="50"><b>Number</b></td>
        <td align="center"><b>Test title</b></td>
    </tr>
    {section name="done" loop=$list_done}
    <tr>  
		<td align="center">{$smarty.section.done.iteration}</td>
		<td><a href="?mod=student&a=reviewtest&test={$list_done[done].TestID}&at=1">{$list_done[done].Title}</a></td>
	</tr>
    {/section}
</table>
</div>
{/if}